package cn.zhaozhiqi.pojo.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * <p>
 * 微信支付配置
 * </p>
 *
 * @author zhaozhiqi
 * @since 2025-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_wxpay_config")
@Schema(name = "WxpayConfig对象", description = "微信支付配置")
public class WxpayConfig implements Serializable {

    private static final long serialVersionUID=1L;

    @Schema(name = "id", description = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(name = "appid", description = "小程序ID")
    @TableField("appid")
    private String appid;

    @Schema(name = "appsecret", description = "小程序密钥")
    @TableField("appsecret")
    private String appsecret;

    @Schema(name = "merchantid", description = "商户ID")
    @TableField("merchantid")
    private String merchantid;

    @Schema(name = "apiv3key", description = "支付接口密钥")
    @TableField("apiv3key")
    private String apiv3key;

    @Schema(name = "privatekeyPath", description = "证书路径")
    @TableField("privatekey_path")
    private String privatekeyPath;

    @Schema(name = "merchantSerialNumber", description = "证书序列号")
    @TableField("merchant_serial_number")
    private String merchantSerialNumber;

    @Schema(name = "notifyUrl", description = "回调URL")
    @TableField("notify_url")
    private String notifyUrl;

}
